package cool.houge.pig.model;

import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

/**
 * 序列.
 *
 * @author KK (kzou227@qq.com)
 */
@Data
@Accessors(chain = true)
@Table("t_sequence")
public class Sequence {

  /** 主键. */
  private @Id String name;
  /** 当前值. */
  private @Column("current_value") Long currentValue;
  /** 递增值. */
  private @Column("increment_value") Integer incrementValue;
  /** 创建时间. */
  private @Column("create_time") LocalDateTime createTime;
  /** 更新时间. */
  private @Column("update_time") LocalDateTime updateTime;
}
